ffi: add new methods and error codes#62762
Conversation
|
Review requested:
|
|
Great! Thank you. It looks like I won't need my own unsafe-pointer once node:ffi gets stabilized 🎉 😄 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #62762 +/- ##
==========================================
- Coverage 91.55% 89.66% -1.89%
==========================================
Files 356 706 +350
Lines 149601 218288 +68687
Branches 23395 41773 +18378
==========================================
+ Hits 136967 195728 +58761
- Misses 12371 14455 +2084
- Partials 263 8105 +7842
🚀 New features to boost your workflow:
|
|
LGTM |
|
@meixg I don't think it is acually necessary. When using the function you already own the source ( |
927da3b to
3e3b1da
Compare
Signed-off-by: Paolo Insogna <paolo@cowtech.it>
3e3b1da to
1fee1dd
Compare
benchmark/ffi/getpid.jsusingffi.dlopen(null, ...)+uv_os_getpid. Thanks to @bengl for Foreign Function Interface (FFI) implementation #46905doc/api/errors.mdas asked from @jasnell in lib,src,test,doc: add node:ffi module #62072 (comment)As promised to @justjake, also the following followups requested in #62072 (comment):
ffi.exportArrayBuffer(...)andffi.exportArrayBufferView(...).exportBytes) to avoid extra JS Buffer wrapper allocations.